export default (data) => {
  return data.map(item => (
    `<li>
      <span>${item.name}</span>
      <span>${item.age}</span>
    </li>`
  )).join('')
}